<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        async function loadNovel() {
            const url = 'https://duyi-static.oss-cn-beijing.aliyuncs.com/files/novel.txt'
            const resp = await fetch(url)
            const reader = resp.body.getReader()
            const decoder = new TextDecoder()
            for (; ;) {
                const { value, done } = await reader.read()
                if (done) {
                    break
                }
                console.log(decoder.decode(value))
            }

        }
        loadNovel()
    </script>
</body>

</html>